//
//  Mediator+BKMy.h
//  bestkeep
//
//  Created by 毛韶谦 on 2016/11/3.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "Mediator.h"
#import "BKMyAction.h"

/*
 [userInfoDict setValue:isLogin forKey:@"bk_userInfo_login"];
 [userInfoDict setValue:statusInfo.userNum forKey:@"bk_userInfo_account"];
 [userInfoDict setValue:statusInfo.userPwd forKey:@"bk_userInfo_pwd"];
 [userInfoDict setValue:statusInfo.TGT forKey:@"bk_userInfo_tgt"];
 [userInfoDict setValue:statusInfo.LoginST forKey:@"bk_userInfo_loginSt"];
 [userInfoDict setValue:statusInfo.ServiceST forKey:@"bk_userInfo_serviceSt"];
 [userInfoDict setValue:statusInfo.photo forKey:@"bk_userInfo_photo"];
 [userInfoDict setValue:statusInfo.stockAccountStateName forKey:@"stockAccountStateName"];
 [userInfoDict setValue:statusInfo.visitorCode forKey:@"bk_userInfo_visitorCode"];
 [userInfoDict setValue:statusInfo.money forKey:@"bk_userInfo_money"];
 [userInfoDict setValue:statusInfo.mobBind forKey:@"bk_userInfo_mobBind"];
 [userInfoDict setValue:[NSNumber numberWithInteger:statusInfo.userId] forKey:@"bk_userInfo_userId"];
 [userInfoDict setValue:statusInfo.payBind forKey:@"bk_userInfo_payBind"];
 [userInfoDict setValue:statusInfo.roles forKey:@"bk_userInfo_roles"];
 [userInfoDict setValue:statusInfo.job forKey:@"bk_userInfo_job"];
 [userInfoDict setValue:statusInfo.userName forKey:@"bk_userInfo_userName"];
 [userInfoDict setValue:statusInfo.email forKey:@"bk_userInfo_email"];
 [userInfoDict setValue:statusInfo.nickName forKey:@"bk_userInfo_nickName"];
 */

@interface Mediator (BKMy)

-(nonnull UIViewController*)BKMy_myViewController;

//获取用户信息
-(nullable NSDictionary<NSString *,id> *)BKMyUserInfo;

//设置开发环境
/*
 value 的取值  1 开发2 生产3 测试
 */

-(void)setDevelopEnviromentWithValue:(NSInteger)value;

//获取st
-(void)getSTWithServerce:(nonnull NSString *)serverceUrl compeleteBlock:(nonnull BkMyCompleteBlock1)finishBlock;
//登录
-(void)userGoToLoginFromOrignalController:(nonnull UIViewController *)originalVC finishBlock:(nullable BKLoginSuccessBlock)finishBlock;

//退出登录
-(void)userLoginOut;

//注册环信
-(void)registerEaseMobileWithApplication:(nonnull UIApplication *)application easeMobKey:( nonnull NSString *)easeMobKey launchOptions:(nullable NSDictionary *)launchOptions;

//获取未读信息数
-(void)getUnreadMessageNum;

//得到未读消息数 返回是字典
/*
 * unreadNumber nsstring  没有未读消息时 为  @“”字符串
 * 获取的key 为 BKMyUserGetUnreadMessageNumber
 */
-(nonnull NSDictionary *)unreadMessageNumber;
//获取设备的deviceToken
-(void)getDeviceTokenWithDeviceToken:(nullable NSString *)deviceTokenStr;

//获取我的收藏
-(nonnull UIViewController *)getMyFavorController;

//收货地址
- (nonnull UIViewController *)BK_my_ShippingAddressVC:(nonnull NSDictionary *)dict;

- (nonnull UIViewController *)BK_couponViewController;

- (nonnull UIViewController *)BKSystemMessageVC;
//获取支付码VC
- (nonnull UIViewController *)BKStorePay_VC;


//实名认证
-(void)realNameAuthVCWithNav:(nonnull UINavigationController *)nav dataParaDict:(nonnull NSDictionary *)dataDict;
//去我的vip界面
-(void)goToMyVipFromOrignalVC:(nonnull UIViewController *)orignalVC;

//获取系统消息
-(void)getMessageStatusWithApplication:(nonnull UIApplication *)application didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions;

-(void)getMessgaeWhthApplicationDidBecomeActive:(nonnull UIApplication *)application;

-(void)getMessageWhenApplicationWillEnterForeground:(nonnull UIApplication *)application;

-(void)getMessageNumWhenApplication:(nonnull UIApplication *)application didReceiveRemoteNotification:(nullable NSDictionary *)userInfo window:(nonnull UIWindow *)window;

//获取用户支付密钥
- (void)BKMy_getUserSecret:(void(^_Nullable)(id _Nullable userSecretKey))block;



@end
